package com.fzy.auth.entity;

import java.util.Date;

import com.fzy.core.entity.EntityRecord;
import com.fzy.core.entity.EntityStatus;
import com.fzy.core.entity.UniqueName;

/**
 * @hibernate.mapping default-lazy="false"
 * @hibernate.class table="fz_user"
 * @hibernate.meta attribute="class-description" value="用户"
 * @hibernate.comment 用户
 */
public class User implements UniqueName, EntityStatus, EntityRecord {
	/**
	 * 
	 */
	private static final long serialVersionUID = -2073250738136591734L;
	Long id;
	String name;
	String password;
	String nickname;
	String status;
	Date createdDate;
	Long createdUser;
	Date updatedDate;
	Long updatedUser;
	/**
     * @hibernate.id generator-class="sequence" column="id" type="long" unsaved-value="null"
     * @hibernate.generator-param  name="sequence" value="s_fz_user"
     * @hibernate.meta attribute="field-description" value="ID"
     * @hibernate.comment ID(s_fz_user)
     */
    public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
    /**
     * @hibernate.property column="status" type="string" length="1" not-null="true"
     * @hibernate.meta attribute="field-description" value="状态"
     * @hibernate.comment 记录状态(0,无效,1,有效)
     */
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
    /**
     * @hibernate.property column="created_date" type="timestamp" not-null="true"
     * @hibernate.meta attribute="field-description" value="创建时间"
     * @hibernate.comment 记录创建时间
     */
	public Date getCreatedDate() {
		return createdDate;
	}
	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}
	/**
     * @hibernate.property column="created_user" type="long" not-null="true"
     * @hibernate.meta attribute="field-description" value="创建人"
     * @hibernate.comment 记录创建人(fz_user.id)
     */
	public Long getCreatedUser() {
		return createdUser;
	}
	public void setCreatedUser(Long createdUser) {
		this.createdUser = createdUser;
	}
    /**
     * @hibernate.property column="updated_date" type="timestamp"
     * @hibernate.meta attribute="field-description" value="更新时间"
     * @hibernate.comment 记录更新时间
     */
	public Date getUpdatedDate() {
		return updatedDate;
	}
	public void setUpdatedDate(Date updatedDate) {
		this.updatedDate = updatedDate;
	}
	/**
     * @hibernate.property column="updated_user" type="long"
     * @hibernate.meta attribute="field-description" value="更新人"
     * @hibernate.comment 记录更新人(fz_user.id)
     */
	public Long getUpdatedUser() {
		return updatedUser;
	}
	public void setUpdatedUser(Long updatedUser) {
		this.updatedUser = updatedUser;
	}
    /**
     * @hibernate.property column="name" type="string" length="255" not-null="true"
     * @hibernate.meta attribute="field-description" value="登陆名"
     * @hibernate.comment 登陆名
     * @hibernate.custom query="true"
     */
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
    /**
     * @hibernate.property column="password" type="string" length="255" not-null="true"
     * @hibernate.meta attribute="field-description" value="密码"
     * @hibernate.comment 密码
     */
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
    /**
     * @hibernate.property column="nick_name" type="string" length="255" not-null="true"
     * @hibernate.meta attribute="field-description" value="昵称"
     * @hibernate.comment 显示名称
     * @hibernate.custom query="true"
     */
	public String getNickname() {
		return nickname;
	}
	public void setNickname(String nickname) {
		this.nickname = nickname;
	}
	
}
